<admintpl file="header" />
<style type="text/css">
.pic-list li {
	margin-bottom: 5px;
}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('AdminSale/index')}">消费机构信息</a></li>
			<li class="active"><a href="{:U('AdminSale/add',array('id'=>empty($item['id'])?'':$item['id']))}" target="_self">添加消费机构</a></li>
		</ul>
		<form action="{:U('AdminSale/add_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
						<tr>
							<th>上级消费机构<span class="form-required">*</span></th>
							<td>
							<select name="sale_manager_id" style="margin:0px;">
								<option value="">请选择</option>
								<foreach name="sale_manager_list" item="sitem">
									<option value="{$sitem['id']}" <if condition="$item['sale_manager_id'] == $sitem['id']">selected</if>>{$sitem.sale_manage_name}</option>
								</foreach>
							</select>
							</td>
						</tr>
						<tr>
							<th>消费机构名称<span class="form-required">*</span></th>
							<td><input type="text" name="sale_name" id="sale_name" value="{$item.sale_name}" style="width: 400px" placeholder="请输入消费机构名称"> </td>
						</tr>
						<tr>
							<th>积分满赠线<span class="form-required">*</span></th>
							<td><input type="text" name="point_line" id="point_line" value="{$item.point_line}" style="width: 400px" placeholder="每满多少金额赠送1积分"> </td>
						</tr>
                    </table>
				</div>

			</div>
			<div class="form-actions">
                <input type="hidden" name="id" value="{$item.id}"/>
				<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
				<a class="btn" href="{:U('AdminSale/index')}">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>

	</body>
</html>